package com.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author weikjie
 * @since 2024-04-22
 */
@TableName("t_routeInfo")
public class RouteInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id，主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父路由id
     */
    private Integer parentId;

    /**
     * 路由路径
     */
    private String path;

    /**
     * 路由名称
     */
    private String name;

    /**
     * 组件
     */
    private String component;

    /**
     * 页面标题
     */
    private String title;

    /**
     * 图标信息
     */
    private String icon;

    /**
     * 在菜单中是否展示此路由
     */
    private Boolean showLink;

    /**
     * 是否展示父级菜单
     */
    private Boolean showParent;

    /**
     * 是否缓存该路由页面
     */
    private Boolean keepAlive;

    /**
     * 菜单排序
     */
    private Integer rankMenu;

    /**
     * 设置激活菜单的路径
     */
    private String activePath;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
    public Boolean getShowLink() {
        return showLink;
    }

    public void setShowLink(Boolean showLink) {
        this.showLink = showLink;
    }
    public Boolean getShowParent() {
        return showParent;
    }

    public void setShowParent(Boolean showParent) {
        this.showParent = showParent;
    }
    public Boolean getKeepAlive() {
        return keepAlive;
    }

    public void setKeepAlive(Boolean keepAlive) {
        this.keepAlive = keepAlive;
    }
    public Integer getRank() {
        return rankMenu;
    }

    public void setRank(Integer rank) {
        this.rankMenu = rank;
    }
    public String getActivePath() {
        return activePath;
    }

    public void setActivePath(String activePath) {
        this.activePath = activePath;
    }
    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return "RouteInfo{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", path=" + path +
                ", name=" + name +
                ", component=" + component +
                ", title=" + title +
                ", icon=" + icon +
                ", showLink=" + showLink +
                ", showParent=" + showParent +
                ", keepAlive=" + keepAlive +
                ", rank=" + rankMenu +
                ", activePath=" + activePath +
                ", createdTime=" + createdTime +
                "}";
    }
}